import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import actions from './actions'
import mutations from './mutations'
import users from './modules/users'
import roles from './modules/roles'
import events from './modules/events'
import images from './modules/images'
import perms from './modules/perms'
import account from './modules/account'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    language: 'zh-CN'
  },
  getters,
  actions,
  mutations,
  modules: {
    users,
    roles,
    events,
    images,
    perms,
    account
  }
})
